package com.example.administrator.printoutindemo.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.printoutindemo.R;
import com.example.administrator.printoutindemo.mvp.ui.entity.ZuiXinXiaoXi;

import java.util.List;


public class ZuiXinXiaoXiAdapter extends BaseQuickAdapter<ZuiXinXiaoXi.DataBean, BaseViewHolder> {

    private Context mContext;

    public ZuiXinXiaoXiAdapter(Context context, @Nullable List<ZuiXinXiaoXi.DataBean> data) {
        super(R.layout.item_zui_xin_xiao_xi, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, ZuiXinXiaoXi.DataBean item) {
//        GlideUtil.loadImage(mContext, item.getImg(), helper.getView(R.id.img_product));
        helper.setText(R.id.tv_title, item.getName());
        helper.setText(R.id.tv_time, item.getPublicTime());
    }

}
